<head th:fragment="init(title,links,scripts)" xmlns:th="http://www.thymeleaf.org">
    <meta charset="UTF-8">
    <title th:replace="${title}"></title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>

    <!-- 禁止浏览器缓存 开发时 -->
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content=" no-cache">
    <meta http-equiv="expires" content="0">
    <meta name="viewport" content="width=device-width,user-scalable=no, minimum-scale=1, initial-scale=1"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>


    <!-- 公共 css js 库-->
    <link rel="stylesheet" type="text/css" data-th-href="@{/X-admin/css/font.css}"/>
    <link rel="stylesheet" type="text/css" data-th-href="@{/X-admin/css/xadmin.css}"/>
    <link rel="stylesheet" type="text/css" data-th-href="@{/X-admin/css/theme.css}"/>

    <script data-th-src="@{/X-admin/js/jquery.min.js}"></script>
    <script data-th-src="@{/X-admin/lib/layui/layui.js}"></script>
    <script data-th-src="@{/X-admin/js/xadmin.js}"></script>
    <script data-th-src="@{/my/app.js}"></script>

    <th:block th:replace="${links}"/>
    <th:block th:replace="${scripts}"/>
    <!-- 兼容 H5-->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style id="theme_style"></style>
    <script>
        if (document.title.length > 10) {
            document.title = "(*^_^*)" + document.title;
            setInterval(function () {
                const first_char = document.title[0];
                const rest_char = document.title.substr(1);
                document.title = rest_char + first_char;
            }, 500)
        }
    </script>
</head>

